package com.wl.user.login.biz;

import jakarta.mail.MessagingException;

public interface VerificationCodeBiz {
    //生成并发送验证码
    void sendVerificationCode(String email) throws MessagingException;

    //发送验证码邮件
    void sendVerificationEmail(String to, String code) throws MessagingException;

    //验证验证码是否正确
    boolean verifyCode(String email,String code);
}
